FROM openjdk:8-jdk-alpine as api-hub-admin

WORKDIR /app

COPY api-hub-admin .

EXPOSE 8101

CMD ["java", "-jar", "/app/api-hub-admin.jar", "--spring.profiles.active=prod"]


FROM openjdk:8-jdk-alpine as api-hub-gateway

WORKDIR /app

COPY api-hub-gateway .

EXPOSE 8090

CMD ["java", "-jar", "/app/api-hub-gateway.jar", "--spring.profiles.active=prod"]


FROM openjdk:8-jdk-alpine as api-hub-interfas

WORKDIR /app

COPY api-hub-interfas .

EXPOSE 8123

CMD ["java", "-jar", "/app/api-hub-gateway.jar", "--spring.profiles.active=prod"]